// 分类 请求

import axios from 'axios';
import qs from 'qs';
Vue.prototype.$qs = qs;
import Vue from 'vue';



export const  getCategory = () =>{

    return new Promise((resolve, reject) => {
        axios({
            url: "/admin/shop_goods/getgenrelist",
            method: "post",
            headers:{
                Authorization: "Bearer " + localStorage.getItem("uid")+"."+localStorage.getItem("token"),
                'Content-type': 'application/x-www-form-urlencoded'
            },
            data: {}
        }).then(res => {
            if(res.data.code != 10000){
                return false;
            }else{
                resolve(res.data.data)
            }
        });
    })


}



